package com.edu.bean;

/**
 * @Author:zyn
 * @Date:2025/11/5--17:07:06
 */
public class Student {

    private int stuId;

    private int stuAge;

    public String stuName;

    private Student() {
    }

    public Student(int stuId, int stuAge, String stuName) {
        this.stuId = stuId;
        this.stuAge = stuAge;
        this.stuName = stuName;
    }

    private void introduce(){
        System.out.println("学生的基本信息：学生Id："+stuId+"，学生年龄："+stuAge+"，学生姓名："+stuName);
    }

    public void greeting(String sth,int times){
        for (int i = 0; i < times; i++) {
            System.out.println(stuName+"说："+sth);
        }
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuId=" + stuId +
                ", stuAge=" + stuAge +
                ", stuName='" + stuName + '\'' +
                '}';
    }
}
